package com.tk.ehr.service.impl;

import com.tk.ehr.mapper.SysUserMapper;
import com.tk.ehr.model.entity.SysUser;
import com.tk.ehr.service.SysUserService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {

  @Resource
  private SysUserMapper sysUserMapper;

  @Override
  public int deleteByPrimaryKey(Long userId) {
    return sysUserMapper.deleteByPrimaryKey(userId);
  }

  @Override
  public int insert(SysUser record) {
    return sysUserMapper.insert(record);
  }

  @Override
  public int insertSelective(SysUser record) {
    return sysUserMapper.insertSelective(record);
  }

  @Override
  public SysUser selectByPrimaryKey(Long userId) {
    return sysUserMapper.selectByPrimaryKey(userId);
  }

  @Override
  public int updateByPrimaryKeySelective(SysUser record) {
    return sysUserMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKey(SysUser record) {
    return sysUserMapper.updateByPrimaryKey(record);
  }
}
